﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace FAST
{

    /// <summary>
    /// This is a custom exception. 
    /// Exceptions that are caught can be thrown as a new exception to allow user-friendly messages that needs to be displayed.
    /// </summary>

    class CustomException : Exception
    {

        public CustomException()
            : base()
        {
        }

        /// <summary>
        /// This is a custom exception. It is thrown when user gives invalid input. 
        /// </summary>
        /// <param name="Message">Customize message which to be displayed.</param>
        public CustomException(string Message)
            : base(Message)
        {
        }

        /// <summary>
        /// This is a custom exception. It is thrown whenever a generic exception is caught.
        /// </summary>
        /// <param name="Message">Customize message for each generic exception caught.</param>
        /// <param name="ex">Exception caught</param>
        public CustomException(string Message, Exception ex)
            : base(Message, ex)
        {
        }
    }


}
